package tgc.edu.tms.entity;


import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Transient;

import org.springframework.data.annotation.CreatedBy;

import tgc.edu.tms.custom.BaseEntity;

/***
 * 
 * 上课计划表
 *
 */
@Entity
public class Teachingplan extends BaseEntity<Integer> {

	private String xq;  //学期
	private String zc;  //周次
	private String classes;  //课次
	private Teacher teacher;// 老师
	private String curriculum;// 课程
	private String content;// 上课内容

	@ManyToOne
	@CreatedBy
	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	
	@Transient
	public String getTeacherName() {
		return teacher==null?null:teacher.getName();
		
	}
	
	/****
	 * 
	 * 课程名称
	 */
	@Transient
	public String getName() {
		return curriculum;
		
	}

	public String getCurriculum() {
		return curriculum;
	}

	public void setCurriculum(String curriculum) {
		this.curriculum = curriculum;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getZc() {
		return zc;
	}

	public void setZc(String zc) {
		this.zc = zc;
	}

	public String getClasses() {
		return classes;
	}

	public void setClasses(String classes) {
		this.classes = classes;
	}

	public String getXq() {
		return xq;
	}

	public void setXq(String xq) {
		this.xq = xq;
	}
	
	

}
